package com.tjzx.entity;

import java.sql.Timestamp;

/**
 * StQuestionInfoId entity. @author MyEclipse Persistence Tools
 */

public class StQuestionInfoId implements java.io.Serializable {

	// Fields

	private Integer questionId;
	private String questionInfo;
	private String questionRightAnswer;
	private Integer stCourseId;
	private Boolean isDeleted;
	private Integer questionTypeId;
	private Timestamp createtime;

	// Constructors

	/** default constructor */
	public StQuestionInfoId() {
	}

	/** minimal constructor */
	public StQuestionInfoId(Integer questionId, String questionInfo,
			String questionRightAnswer, Integer stCourseId,
			Integer questionTypeId) {
		this.questionId = questionId;
		this.questionInfo = questionInfo;
		this.questionRightAnswer = questionRightAnswer;
		this.stCourseId = stCourseId;
		this.questionTypeId = questionTypeId;
	}

	/** full constructor */
	public StQuestionInfoId(Integer questionId, String questionInfo,
			String questionRightAnswer, Integer stCourseId, Boolean isDeleted,
			Integer questionTypeId, Timestamp createtime) {
		this.questionId = questionId;
		this.questionInfo = questionInfo;
		this.questionRightAnswer = questionRightAnswer;
		this.stCourseId = stCourseId;
		this.isDeleted = isDeleted;
		this.questionTypeId = questionTypeId;
		this.createtime = createtime;
	}

	// Property accessors

	public Integer getQuestionId() {
		return this.questionId;
	}

	public void setQuestionId(Integer questionId) {
		this.questionId = questionId;
	}

	public String getQuestionInfo() {
		return this.questionInfo;
	}

	public void setQuestionInfo(String questionInfo) {
		this.questionInfo = questionInfo;
	}

	public String getQuestionRightAnswer() {
		return this.questionRightAnswer;
	}

	public void setQuestionRightAnswer(String questionRightAnswer) {
		this.questionRightAnswer = questionRightAnswer;
	}

	public Integer getStCourseId() {
		return this.stCourseId;
	}

	public void setStCourseId(Integer stCourseId) {
		this.stCourseId = stCourseId;
	}

	public Boolean getIsDeleted() {
		return this.isDeleted;
	}

	public void setIsDeleted(Boolean isDeleted) {
		this.isDeleted = isDeleted;
	}

	public Integer getQuestionTypeId() {
		return this.questionTypeId;
	}

	public void setQuestionTypeId(Integer questionTypeId) {
		this.questionTypeId = questionTypeId;
	}

	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof StQuestionInfoId))
			return false;
		StQuestionInfoId castOther = (StQuestionInfoId) other;

		return ((this.getQuestionId() == castOther.getQuestionId()) || (this
				.getQuestionId() != null
				&& castOther.getQuestionId() != null && this.getQuestionId()
				.equals(castOther.getQuestionId())))
				&& ((this.getQuestionInfo() == castOther.getQuestionInfo()) || (this
						.getQuestionInfo() != null
						&& castOther.getQuestionInfo() != null && this
						.getQuestionInfo().equals(castOther.getQuestionInfo())))
				&& ((this.getQuestionRightAnswer() == castOther
						.getQuestionRightAnswer()) || (this
						.getQuestionRightAnswer() != null
						&& castOther.getQuestionRightAnswer() != null && this
						.getQuestionRightAnswer().equals(
								castOther.getQuestionRightAnswer())))
				&& ((this.getStCourseId() == castOther.getStCourseId()) || (this
						.getStCourseId() != null
						&& castOther.getStCourseId() != null && this
						.getStCourseId().equals(castOther.getStCourseId())))
				&& ((this.getIsDeleted() == castOther.getIsDeleted()) || (this
						.getIsDeleted() != null
						&& castOther.getIsDeleted() != null && this
						.getIsDeleted().equals(castOther.getIsDeleted())))
				&& ((this.getQuestionTypeId() == castOther.getQuestionTypeId()) || (this
						.getQuestionTypeId() != null
						&& castOther.getQuestionTypeId() != null && this
						.getQuestionTypeId().equals(
								castOther.getQuestionTypeId())))
				&& ((this.getCreatetime() == castOther.getCreatetime()) || (this
						.getCreatetime() != null
						&& castOther.getCreatetime() != null && this
						.getCreatetime().equals(castOther.getCreatetime())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getQuestionId() == null ? 0 : this.getQuestionId()
						.hashCode());
		result = 37
				* result
				+ (getQuestionInfo() == null ? 0 : this.getQuestionInfo()
						.hashCode());
		result = 37
				* result
				+ (getQuestionRightAnswer() == null ? 0 : this
						.getQuestionRightAnswer().hashCode());
		result = 37
				* result
				+ (getStCourseId() == null ? 0 : this.getStCourseId()
						.hashCode());
		result = 37 * result
				+ (getIsDeleted() == null ? 0 : this.getIsDeleted().hashCode());
		result = 37
				* result
				+ (getQuestionTypeId() == null ? 0 : this.getQuestionTypeId()
						.hashCode());
		result = 37
				* result
				+ (getCreatetime() == null ? 0 : this.getCreatetime()
						.hashCode());
		return result;
	}

}